package com.mask.token.condition;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

import java.lang.annotation.*;

/**
 * 条件注解：当Mask Token功能启用时
 *
 * @author mask
 * @since 1.0.0
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@ConditionalOnProperty(prefix = "mask.token", name = "enabled", havingValue = "true", matchIfMissing = true)
public @interface ConditionalOnMaskTokenEnabled {
}
